import {fromJS} from 'immutable'

const TabbarReducer = (oldState={control: true}, action)=>{
    let newState = fromJS(oldState);
    switch(action.type){
        case 'hide':
            return newState.set('control', false).toJS();
        case 'show':
            return newState.set('control', true).toJS();
        default:
            return oldState;
    }
}

export default TabbarReducer;